﻿using StoreRepositorys;
using StoreRepositorys.Impl;
using StoreRepositorys.Interface;

namespace StoreISet.Extensions
{
    public static class Extension
    {
        /// <summary>
        /// 注入读的服务和仓储
        /// </summary>
        /// <param name="ServicesAssess"></param>
        public static void AssessGet(this IServiceCollection Services)
        {
            //仓储注入
            Services.AddScoped<IRelationshipStoreRepository, RelationshipStoreRepository>();
            Services.AddScoped<IStoreRepository, StoreRepository>();
            Services.AddScoped<MySqlSugarDbcontext>();
            Services.AddScoped<ISystematicRepository, SystematicRepository>();
            Services.AddScoped<IPictureRepository, PictureRepository>();
        }
    }
}
